Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2Wx_Mini = require("Wx_Mini");
var $2tt_Mini = require("tt_Mini");
var $2Platformconf = require("Platformconf");
var $2KS_Mini = require("KS_Mini");
var $2QQ_Mini = require("QQ_Mini");
var $2OPPO_Mini = require("OPPO_Mini");
var $2VIVO_Mini = require("VIVO_Mini");
var $2ZFB_Mini = require("ZFB_Mini");
var def_MiniPlatform = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.currMiniPlatform = null;
  }
  return babel_createClass(_ctor, [{
    key: "init",
    value: function init(e) {
      console.log("Platformconf.PlatformType", $2Platformconf.default.PlatformType, "---", window.ePlatform);
      switch ($2Platformconf.default.PlatformType) {
        case $2Platformconf.ePlatformType.WXGame:
          this.currMiniPlatform = new $2Wx_Mini.default();
          break;
        case $2Platformconf.ePlatformType.TTGame:
          this.currMiniPlatform = new $2tt_Mini.default();
          break;
        case $2Platformconf.ePlatformType.KWaiGame:
          this.currMiniPlatform = new $2KS_Mini.default();
          break;
        case $2Platformconf.ePlatformType.QQGame:
          this.currMiniPlatform = new $2QQ_Mini.default();
          break;
        case $2Platformconf.ePlatformType.OPPOGame:
          this.currMiniPlatform = new $2OPPO_Mini.default();
          break;
        case $2Platformconf.ePlatformType.VIVOGame:
          this.currMiniPlatform = new $2VIVO_Mini.default();
          break;
        case $2Platformconf.ePlatformType.ZFBGame:
          this.currMiniPlatform = new $2ZFB_Mini.default();
      }
      if (this.currMiniPlatform) {
        if (this.currMiniPlatform.active) {
          this.currMiniPlatform.init(e);
        } else {
          this.currMiniPlatform = null;
        }
      } else {
        console.log("平台初始化失败");
      }
    }
  }, {
    key: "login",
    value: function login(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.login(e, t);
    }
  }, {
    key: "loginCallBack",
    value: function loginCallBack() {
      this.currMiniPlatform && this.currMiniPlatform.loginCallBack();
    }
  }, {
    key: "logOut",
    value: function logOut() {}
  }, {
    key: "logOutCallBack",
    value: function logOutCallBack() {}
  }, {
    key: "share",
    value: function share(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.share(e, t);
    }
  }, {
    key: "shareCallBack",
    value: function shareCallBack() {}
  }, {
    key: "play_AD",
    value: function play_AD(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.play_AD(e, t);
    }
  }, {
    key: "playAdCallBack",
    value: function playAdCallBack() {
      var _this$currMiniPlatfor;
      this.currMiniPlatform && (_this$currMiniPlatfor = this.currMiniPlatform).playAdCallBack.apply(_this$currMiniPlatfor, arguments);
    }
  }, {
    key: "banner",
    value: function banner(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.banner(e, t);
    }
  }, {
    key: "onResume",
    value: function onResume() {}
  }, {
    key: "onPause",
    value: function onPause() {}
  }, {
    key: "endGame",
    value: function endGame() {}
  }, {
    key: "onDestroy",
    value: function onDestroy() {}
  }, {
    key: "vibrate",
    value: function vibrate() {
      var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
      this.currMiniPlatform && this.currMiniPlatform.vibrate(e);
    }
  }, {
    key: "checkSession",
    value: function checkSession(e) {
      this.currMiniPlatform && this.currMiniPlatform.checkSession(e);
    }
  }, {
    key: "eqIsAuthoried",
    value: function eqIsAuthoried() {
      this.currMiniPlatform && this.currMiniPlatform.eqIsAuthoried();
    }
  }, {
    key: "appClick",
    value: function appClick(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.appClick(e, t);
    }
  }, {
    key: "sendEvent",
    value: function sendEvent(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.sendEvent(e, t);
    }
  }, {
    key: "createImage",
    value: function createImage(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.createImage(e, t);
    }
  }, {
    key: "onPostMessage",
    value: function onPostMessage(e) {
      this.currMiniPlatform && this.currMiniPlatform.onPostMessage(e);
    }
  }, {
    key: "checkFollowAwemeState",
    value: function checkFollowAwemeState(e) {
      this.currMiniPlatform && this.currMiniPlatform.checkFollowAwemeState(e);
    }
  }, {
    key: "openAwemeUserProfile",
    value: function openAwemeUserProfile(e) {
      this.currMiniPlatform && this.currMiniPlatform.openAwemeUserProfile(e);
    }
  }, {
    key: "addShortcut",
    value: function addShortcut(e) {
      this.currMiniPlatform && this.currMiniPlatform.addShortcut(e);
    }
  }, {
    key: "checkShortcut",
    value: function checkShortcut(e) {
      this.currMiniPlatform && this.currMiniPlatform.checkShortcut(e);
    }
  }, {
    key: "updateGame",
    value: function updateGame() {
      this.currMiniPlatform && this.currMiniPlatform.updateGame();
    }
  }, {
    key: "onUpdateReady",
    value: function onUpdateReady(e) {
      this.currMiniPlatform && this.currMiniPlatform.onUpdateReady(e);
    }
  }, {
    key: "setClipboardData",
    value: function setClipboardData(e) {
      this.currMiniPlatform && this.currMiniPlatform.setClipboardData(e);
    }
  }, {
    key: "hideLoading",
    value: function hideLoading() {
      this.currMiniPlatform && this.currMiniPlatform.hideLoading();
    }
  }, {
    key: "showLoading",
    value: function showLoading(e) {
      this.currMiniPlatform && this.currMiniPlatform.showLoading(e);
    }
  }, {
    key: "request",
    value: function request(e, t, n) {
      this.currMiniPlatform && this.currMiniPlatform.request(e, t, n);
    }
  }, {
    key: "recorderStart",
    value: function recorderStart() {
      var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 280;
      this.currMiniPlatform && this.currMiniPlatform.recorderStart(e);
    }
  }, {
    key: "recorderStop",
    value: function recorderStop() {
      this.currMiniPlatform && this.currMiniPlatform.recorderStop();
    }
  }, {
    key: "recorderPause",
    value: function recorderPause() {
      this.currMiniPlatform && this.currMiniPlatform.recorderPause();
    }
  }, {
    key: "recorderResume",
    value: function recorderResume() {
      this.currMiniPlatform && this.currMiniPlatform.recorderResume();
    }
  }, {
    key: "createRecorderShareButton",
    value: function createRecorderShareButton(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.createRecorderShareButton(e, t);
    }
  }, {
    key: "Hide_Recorder_btn",
    value: function Hide_Recorder_btn() {
      this.currMiniPlatform && this.currMiniPlatform.Hide_Recorder_btn();
    }
  }, {
    key: "recordClip",
    value: function recordClip(e) {
      this.currMiniPlatform && this.currMiniPlatform.recordClip(e);
    }
  }, {
    key: "shareAppMessage",
    value: function shareAppMessage(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.shareAppMessage(e, t);
    }
  }, {
    key: "navigateToVideoView",
    value: function navigateToVideoView(e) {
      this.currMiniPlatform && this.currMiniPlatform.navigateToVideoView(e);
    }
  }, {
    key: "requestVideos",
    value: function requestVideos(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.requestVideos(e, t);
    }
  }, {
    key: "shareVideo",
    value: function shareVideo(e) {
      this.currMiniPlatform && this.currMiniPlatform.shareVideo(e);
    }
  }, {
    key: "interstitialShow",
    value: function interstitialShow(e) {
      this.currMiniPlatform && this.currMiniPlatform.interstitialShow(e);
    }
  }, {
    key: "bannerDestroy",
    value: function bannerDestroy(e) {
      this.currMiniPlatform && this.currMiniPlatform.bannerDestroy(e);
    }
  }, {
    key: "bannerCreate",
    value: function bannerCreate(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.bannerCreate(e, t);
    }
  }, {
    key: "bannerrefreshAD",
    value: function bannerrefreshAD(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.bannerrefreshAD(e, t);
    }
  }, {
    key: "bannerShow",
    value: function bannerShow(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.bannerShow(e, t);
    }
  }, {
    key: "bannerHide",
    value: function bannerHide(e) {
      this.currMiniPlatform && this.currMiniPlatform.bannerHide(e);
    }
  }, {
    key: "bannertempHide",
    value: function bannertempHide() {
      this.currMiniPlatform && this.currMiniPlatform.bannertempHide();
    }
  }, {
    key: "bannertempShow",
    value: function bannertempShow() {
      this.currMiniPlatform && this.currMiniPlatform.bannertempHide();
    }
  }, {
    key: "blockADshow",
    value: function blockADshow(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.blockADshow(e, t);
    }
  }, {
    key: "blockADhide",
    value: function blockADhide(e) {
      this.currMiniPlatform && this.currMiniPlatform.blockADhide(e);
    }
  }, {
    key: "getSystemInfo",
    value: function getSystemInfo(e) {
      this.currMiniPlatform && this.currMiniPlatform.getSystemInfo(e);
    }
  }, {
    key: "shareDiyMap",
    value: function shareDiyMap(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.shareDiyMap(e, t);
    }
  }, {
    key: "getAppName",
    value: function getAppName(e) {
      this.currMiniPlatform && this.currMiniPlatform.getAppName(e);
    }
  }, {
    key: "loadGridAd",
    value: function loadGridAd(e, t, n) {
      var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "black";
      this.currMiniPlatform && this.currMiniPlatform.loadGridAd(e, t, n, o);
    }
  }, {
    key: "showGridAd",
    value: function showGridAd(e, t, n) {
      var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "black";
      this.currMiniPlatform && this.currMiniPlatform.showGridAd(e, t, n, o);
    }
  }, {
    key: "hideGridAd",
    value: function hideGridAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.hideGridAd(e);
    }
  }, {
    key: "destroyGridAd",
    value: function destroyGridAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.destroyGridAd(e);
    }
  }, {
    key: "loadCustomAd",
    value: function loadCustomAd(e, t) {
      var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
      this.currMiniPlatform && this.currMiniPlatform.loadCustomAd(e, t, n);
    }
  }, {
    key: "uploadCloudStorage",
    value: function uploadCloudStorage(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.uploadCloudStorage(e, t);
    }
  }, {
    key: "showCustomAd",
    value: function showCustomAd(e, t) {
      var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 60;
      this.currMiniPlatform && this.currMiniPlatform.showCustomAd(e, t, n);
    }
  }, {
    key: "hideCustomAd",
    value: function hideCustomAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.hideCustomAd(e);
    }
  }, {
    key: "destroyCustomAd",
    value: function destroyCustomAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.destroyCustomAd(e);
    }
  }, {
    key: "showNativeAD",
    value: function showNativeAD(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.showNativeAD(e, t);
    }
  }, {
    key: "destroyNativeAD",
    value: function destroyNativeAD() {
      this.currMiniPlatform && this.currMiniPlatform.destroyNativeAD();
    }
  }, {
    key: "reportAdShow",
    value: function reportAdShow(e) {
      this.currMiniPlatform && this.currMiniPlatform.reportAdShow(e);
    }
  }, {
    key: "showGamePortalAd",
    value: function showGamePortalAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.showGamePortalAd(e);
    }
  }, {
    key: "clickNativeAD",
    value: function clickNativeAD(e) {
      this.currMiniPlatform && this.currMiniPlatform.clickNativeAD(e);
    }
  }, {
    key: "hideGamePortalAd",
    value: function hideGamePortalAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.hideGamePortalAd(e);
    }
  }, {
    key: "loadSubpackage",
    value: function loadSubpackage(e, t) {
      this.currMiniPlatform && this.currMiniPlatform.loadSubpackage(e, t);
    }
  }, {
    key: "loadBannerBoxAd",
    value: function loadBannerBoxAd() {
      this.currMiniPlatform && this.currMiniPlatform.loadBannerBoxAd();
    }
  }, {
    key: "showBannerBoxAd",
    value: function showBannerBoxAd(e) {
      this.currMiniPlatform && this.currMiniPlatform.showBannerBoxAd(e);
    }
  }, {
    key: "hideBannerBoxAd",
    value: function hideBannerBoxAd() {
      this.currMiniPlatform && this.currMiniPlatform.hideBannerBoxAd();
    }
  }, {
    key: "destroyBannerBoxAd",
    value: function destroyBannerBoxAd() {
      this.currMiniPlatform && this.currMiniPlatform.destroyBannerBoxAd();
    }
  }, {
    key: "setRankInfo",
    value: function setRankInfo(e) {
      this.currMiniPlatform && this.currMiniPlatform.setRankInfo(e);
    }
  }, {
    key: "getRankInfo",
    value: function getRankInfo() {
      this.currMiniPlatform && this.currMiniPlatform.getRankInfo();
    }
  }, {
    key: "sendEQEvent",
    value: function sendEQEvent(e, t, n) {}
  }, {
    key: "gameInfo",
    value: function gameInfo(e) {
      this.currMiniPlatform.gameInfo(e);
    }
  }], [{
    key: "Instance",
    get() {
      null == _ctor.instance && (_ctor.instance = new _ctor());
      return _ctor.instance;
    }
  }]);
}();
exports.default = def_MiniPlatform;
def_MiniPlatform.instance = null;